blob: ce4634d756bc6f3053674933ac4265f0456d0645 [file] [log] [blame]
Douglas Gregore721f952009-04-28 18:58:38 +00001// Test with pch.
2// RUN: clang-cc -emit-pch -DFOO -o %t %S/variables.h &&
3// RUN: clang-cc -DBAR=int -include-pch %t -fsyntax-only -pedantic %s
4
5BAR bar = 17;
6
7#ifndef FOO
8# error FOO was not defined
9#endif
10
11#if FOO != 1
12# error FOO has the wrong definition
13#endif
14
15#ifndef BAR
16# error BAR was not defined
17#endif