blob: 90d023c14c101991e51fe0b9ce4863356ccd7a6f [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
Sebastian Redlcd8e6182009-02-08 10:28:44 +00006// XFAIL
7// fails due to exact diagnostic matching
Daniel Dunbar9263fd52008-10-04 20:46:41 +00008
9#ifdef AS_SOURCE
10#undef AS_SOURCE
11
12#define AS_INCLUDE
13
14#ifdef SHOULD_FIND
15#include <env-include-paths.c>
Daniel Dunbar9263fd52008-10-04 20:46:41 +000016#endif
17
18#undef AS_INCLUDE
19
20#endif
21
Daniel Dunbar9263fd52008-10-04 20:46:41 +000022
23/* expected-warning {{Hello}} */ #warning "Hello"