OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* typeck2.c (abstract_virtual_errors): Reword diagnostics, make them
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
enum1.C
1
// { dg-do run }
2
extern "C" void abort();
3
4
struct A
5
{
6
enum { a = 3}* p;
7
int f() { return (int) a; }
8
};
9
10
int main()
11
{
12
A a;
13
14
if (a.f() != 3)
15
abort();
16
}