repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix the clang-wpa example.
[clang.git]
/
test
/
SemaCXX
/
enum-bitfield.cpp
blob
a766116b1c3cc4fe219b6633cfdf5c825de0f5e0
1
// RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++0x -verify -triple x86_64-apple-darwin %s
2
3
enum
E
{};
4
5
struct
Z
{};
6
typedef
int
Integer
;
7
8
struct
X
{
9
enum
E
:
1
;
10
enum
E
:
Z
;
// expected-error{{invalid underlying type}}
11
enum
E2
:
int
;
12
enum
E3
:
Integer
;
13
};
14
15
struct
Y
{
16
enum
E
:
int
(
2
);
17
enum
E
:
Z
();
// expected-error{{not an integer constant}}
18
};