mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
new tests
llvm-svn: 38698
This commit is contained in:
parent
a12dd15b56
commit
b63d9de243
@ -1,5 +1,7 @@
|
||||
// RUN: clang -E %s | grep 'noexp: foo y' &&
|
||||
// RUN: clang -E %s | grep 'expand: abc'
|
||||
// RUN: clang -E %s | grep 'expand: abc' &&
|
||||
// RUN: clang -E %s | grep 'noexp2: foo nonexp' &&
|
||||
// RUN: clang -E %s | grep 'expand2: abc'
|
||||
|
||||
#define A foo
|
||||
#define foo() abc
|
||||
@ -8,9 +10,18 @@
|
||||
// This should not expand to abc, because the foo macro isn't followed by (.
|
||||
noexp: X
|
||||
|
||||
#undef X
|
||||
|
||||
// This should expand to abc.
|
||||
#undef X
|
||||
#define X A ()
|
||||
expand: X
|
||||
|
||||
|
||||
// This should be 'foo nonexp'
|
||||
noexp2: A nonexp
|
||||
|
||||
// This should expand
|
||||
expand2: A (
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user