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
Fix typo in test case
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
enum1.C
blob
f692991a44242fa9e3232d415d0d44ad0942ff1c
1
extern "C" void abort();
2
3
struct A
4
{
5
enum { a = 3}* p;
6
int f() { return (int) a; }
7
};
8
9
int main()
10
{
11
A a;
12
13
if (a.f() != 3)
14
abort();
15
}