Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / nvptx / proto-1.c
blob6245d915ed4afb99b061a50516d48f162918d628
1 /* { dg-do compile } */
3 int f(void)
5 const int dev = 4;
7 /* Check that without an explicit prototype, we deduce from call site the
8 signature for the (mandatory in PTX) prototype. */
9 /* extern int foo (int *); */
10 /* { dg-final { scan-assembler-not "\\\.callprototype" } } */
11 /* { dg-final { scan-assembler "\\\.extern \\\.func \\\(\[^,\n\r\]+\\\) foo \\\(\[^,\n\r\]+\\\);" } } */
12 return !foo(&dev);