mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 17:43:57 +00:00
new testcase
llvm-svn: 38693
This commit is contained in:
parent
db878cde8e
commit
53ede2a826
16
clang/test/Preprocessor/macro_fn_lparen_scan.c
Normal file
16
clang/test/Preprocessor/macro_fn_lparen_scan.c
Normal file
@ -0,0 +1,16 @@
|
||||
// RUN: clang -E %s | grep 'noexp: foo y' &&
|
||||
// RUN: clang -E %s | grep 'expand: abc'
|
||||
|
||||
#define A foo
|
||||
#define foo() abc
|
||||
#define X A y
|
||||
|
||||
// This should not expand to abc, because the foo macro isn't followed by (.
|
||||
noexp: X
|
||||
|
||||
#undef X
|
||||
|
||||
// This should expand to abc.
|
||||
#define X A ()
|
||||
expand: X
|
||||
|
Loading…
Reference in New Issue
Block a user