Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 63d1dc66658fa072c6e0caba6c97e00da37555ce)

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:9:14: error: too few arguments provided to function-like macro invocation
   a = test(b);   // C4003
             ^
prog.cc:3:9: note: macro 'test' defined here
#define test(a,b) (a+b)
        ^
prog.cc:9:8: error: use of undeclared identifier 'test'
   a = test(b);   // C4003
       ^
2 errors generated.
Exit Code:
1