llvm-for-llvmta/tools/clang/test/Preprocessor/_Pragma-dependency.c

13 lines
345 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -E -verify %s
#pragma GCC dependency "./_Pragma-dependency.c"
#define self "./_Pragma-dependency.c"
// expected-error@+1 {{expected "FILENAME" or <FILENAME>}}
#pragma GCC dependency self
#define DO_PRAGMA _Pragma
#define STR "GCC dependency \"parse.y\"")
// expected-error@+1 {{'parse.y' file not found}}
DO_PRAGMA (STR