blob: b29638bb0b10d51616ee36c2a30d479b6779af32 [file] [log] [blame]
// Test with pch.
// RUN: clang-cc -emit-pch -DFOO -o %t %S/variables.h
// RUN: clang-cc -DBAR=int -include-pch %t -fsyntax-only -pedantic %s
// RUN: clang-cc -DFOO -DBAR=int -include-pch %t -Werror %s
// RUN: not clang-cc -DFOO -DBAR=int -DX=5 -include-pch %t -Werror %s
BAR bar = 17;
#ifndef FOO
# error FOO was not defined
#endif
#if FOO != 1
# error FOO has the wrong definition
#endif
#ifndef BAR
# error BAR was not defined
#endif