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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
enum9.C
blob
9713e4b90e51c686c2565f4a8059268c8b974bdb
1
// { dg-do run }
2
// { dg-options "-fshort-enums" }
3
// GROUPS passed enums
4
extern "C" int printf (const char *, ...);
5
6
enum E { A = 0x80000000, B = 0 };
7
8
main()
9
{
10
if (sizeof (E) != 4)
11
{ printf ("FAIL\n"); return 1; }
12
else
13
printf ("PASS\n");
14
return 0;
15
}