repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
enum1.C
blob
9685f6a04e330ce1865d3f6f978fe0011b0e296d
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
}