blob: 11876c315b016e5dd4778c3a09e2d6980fc754ee [file] [log] [blame]
Daniel Dunbar9263fd52008-10-04 20:46:41 +00001// RUN: clang -fsyntax-only -verify -DAS_SOURCE %s &&
2// RUN: env CPATH="" clang -fsyntax-only -verify -DAS_SOURCE %s &&
3// RUN: env CPATH="xyz:xyz" clang -fsyntax-only -verify -DAS_SOURCE %s &&
Daniel Dunbaref96cf02008-10-04 21:05:04 +00004// RUN: cd $(dirname %s) &&
Chris Lattner733ea7e2008-11-21 01:18:36 +00005// RUN: env CPATH="xyz::xyz" clang -fsyntax-only -verify -DSHOULD_FIND -DAS_SOURCE %s
Daniel Dunbar9263fd52008-10-04 20:46:41 +00006
7#ifdef AS_SOURCE
8#undef AS_SOURCE
9
10#define AS_INCLUDE
11
12#ifdef SHOULD_FIND
13#include <env-include-paths.c>
Daniel Dunbar9263fd52008-10-04 20:46:41 +000014#endif
15
16#undef AS_INCLUDE
17
18#endif
19
Daniel Dunbar9263fd52008-10-04 20:46:41 +000020
21/* expected-warning {{Hello}} */ #warning "Hello"