Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C

Compiler

gcc HEAD 9.0.0 20181026 (experimental)

Options
Warnings
C11(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ gcc prog.c -Wall -Wextra -std=gnu11
prog.c:7:14: error: size of array 'compile_time_assert_twos_complement_math' is negative
    7 |  typedef int compile_time_assert_## name [1 - 2*!(expr)]
      |              ^~~~~~~~~~~~~~~~~~~~
prog.c:9:1: note: in expansion of macro 'compile_time_assert'
    9 | compile_time_assert(twos_complement_math, INT_MIN == -INT_MIN);
      | ^~~~~~~~~~~~~~~~~~~
Exit Code:
1