repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[OpenACC] Enable 'attach' clause for combined constructs
[llvm-project.git]
/
clang
/
test
/
Parser
/
control-scope.c
blob
53149802c4cb522cfafe28914fb5966b01a42b98
1
// RUN: %clang_cc1 %s -std=c90 -verify
2
// RUN: %clang_cc1 %s -std=c99
3
4
int
f
(
int
z
) {
5
if
(
z
+
sizeof
(
enum
{
a
}))
// expected-note {{previous definition is here}}
6
return
1
+
sizeof
(
enum
{
a
});
// expected-error {{redefinition of enumerator 'a'}}
7
return
0
;
8
}