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:7:9: warning: 'TEST' macro redefined [-Wmacro-redefined]
#define TEST "test2"   // C4005 delete or rename to resolve the warning
        ^
prog.cc:6:9: note: previous definition is here
#define TEST "test1"
        ^
1 warning generated.
test2
Exit Code:
0