repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr67625.C
blob
bcff5af58317634920401652cfc398cf98384e5c
1
// PR c++/67625
2
// { dg-do compile { target c++11 } }
3
4
constexpr unsigned short
5
bswap16 (unsigned short x)
6
{
7
return __builtin_bswap16 (x);
8
}
9
constexpr int a = bswap16 (1);
10
enum { b = a };
11
enum { c = __builtin_bswap16 (1) };
12
enum { d = bswap16 (1) };