diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/builtin-bswap-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/builtin-bswap-1.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/builtin-bswap-1.c b/gcc/testsuite/gcc.dg/builtin-bswap-1.c new file mode 100644 index 000000000..6b4a80553 --- /dev/null +++ b/gcc/testsuite/gcc.dg/builtin-bswap-1.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target stdint_types } */ +/* { dg-options "" } */ +/* { dg-final { scan-assembler-not "__builtin_" } } */ + +#include <stdint.h> + +uint32_t foo (uint32_t a) +{ + int b; + + b = __builtin_bswap32 (a); + + return b; +} |