blob: 5f7735928fed0fb2f1b6030bf8b6c8d9942b2e80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile } */
int f(void)
{
const int dev = 4;
/* Check that without an explicit prototype, we deduce from call site the
signature for the (mandatory in PTX) prototype. */
/* extern int acc_on_device_(int *); */
/* { dg-final { scan-assembler-not "\\\.callprototype" } } */
/* { dg-final { scan-assembler "\\\.extern \\\.func \\\(\[^,\n\r\]+\\\)acc_on_device_ \\\(\[^,\n\r\]+\\\);" } } */
return !acc_on_device_(&dev);
}
|