Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 4013bab9c4a5fe634be6271779a99bc158c3e396)

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

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++2a
prog.cc:8:15: error: too many arguments provided to function-like macro invocation
   a = test(a,b);   // C4002
              ^
prog.cc:3:9: note: macro 'test' defined here
#define test(a) (a)
        ^
prog.cc:8:8: error: use of undeclared identifier 'test'
   a = test(a,b);   // C4002
       ^
2 errors generated.
Exit Code:
1