Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr67625.C
blob: bcff5af58317634920401652cfc398cf98384e5c [
file
] [
log
] [
blame
]
// PR c++/67625
// { dg-do compile { target c++11 } }
constexpr
unsigned
short
bswap16
(
unsigned
short
x
)
{
return
__builtin_bswap16
(
x
);
}
constexpr
int
a
=
bswap16
(
1
);
enum
{
b
=
a
};
enum
{
c
=
__builtin_bswap16
(
1
)
};
enum
{
d
=
bswap16
(
1
)
};