blob: 6245d915ed4afb99b061a50516d48f162918d628 [file] [log] [blame]
/* { 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 foo (int *); */
/* { dg-final { scan-assembler-not "\\\.callprototype" } } */
/* { dg-final { scan-assembler "\\\.extern \\\.func \\\(\[^,\n\r\]+\\\) foo \\\(\[^,\n\r\]+\\\);" } } */
return !foo(&dev);
}