Handle symbol visibility/locality for PIE/PIC
[official-gcc.git] / gcc / testsuite / c-c++-common / goacc / acc_on_device-2-off.c
blob25d21ad29c90acfc49c6919dcd66c4372eb9a001
1 /* Have to enable optimizations, as otherwise builtins won't be expanded. */
2 /* { dg-additional-options "-O -fdump-rtl-expand -fno-openacc" } */
4 #if __cplusplus
5 extern "C" {
6 #endif
8 typedef enum acc_device_t { acc_device_X = 123 } acc_device_t;
9 extern int acc_on_device (acc_device_t);
11 #if __cplusplus
13 #endif
15 int
16 f (void)
18 const acc_device_t dev = acc_device_X;
19 return acc_on_device (dev);
22 /* Without -fopenacc, we're expecting one call.
23 { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]*\\\"acc_on_device" 1 "expand" } } */
25 /* { dg-final { cleanup-rtl-dump "expand" } } */