aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ext/builtin-bswap1.C
blob: 787ecba43ad9cd5804def14458be85b33a8e015f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c/37743
// { dg-do compile }

#if defined(__UINT32_TYPE__) && defined(__INT32_TYPE__)

void foo (__UINT32_TYPE__);
void foo (__INT32_TYPE__);

void
bar (__UINT32_TYPE__ x)
{
  foo (__builtin_bswap32 (x));
}

#else

void
bar ()
{
}

#endif