mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-17 13:51:21 +00:00

- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
9 lines
277 B
C
9 lines
277 B
C
// RUN: %clang_cc1 %s -std=c90 -verify
|
|
// RUN: %clang_cc1 %s -std=c99
|
|
|
|
int f (int z) {
|
|
if (z + sizeof (enum {a})) // expected-note {{previous definition is here}}
|
|
return 1 + sizeof (enum {a}); // expected-error {{redefinition of enumerator 'a'}}
|
|
return 0;
|
|
}
|