Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc 9.3.0

Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-9.3.0/include -std=gnu++2a
prog.cc:8:16: error: macro "test" passed 2 arguments, but takes just 1
    8 |    a = test(a,b);   // C4002
      |                ^
prog.cc:3: note: macro "test" defined here
    3 | #define test(a) (a)
      | 
prog.cc: In function 'int main()':
prog.cc:8:8: error: 'test' was not declared in this scope
    8 |    a = test(a,b);   // C4002
      |        ^~~~
Exit Code:
1