blob: 90d023c14c101991e51fe0b9ce4863356ccd7a6f [file] [log] [blame]
// RUN: clang -fsyntax-only -verify -DAS_SOURCE %s &&
// RUN: env CPATH="" clang -fsyntax-only -verify -DAS_SOURCE %s &&
// RUN: env CPATH="xyz:xyz" clang -fsyntax-only -verify -DAS_SOURCE %s &&
// RUN: cd $(dirname %s) &&
// RUN: env CPATH="xyz::xyz" clang -fsyntax-only -verify -DSHOULD_FIND -DAS_SOURCE %s
// XFAIL
// fails due to exact diagnostic matching
#ifdef AS_SOURCE
#undef AS_SOURCE
#define AS_INCLUDE
#ifdef SHOULD_FIND
#include <env-include-paths.c>
#endif
#undef AS_INCLUDE
#endif
/* expected-warning {{Hello}} */ #warning "Hello"