OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [warn/] [sentinel.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-Wall" } */
3
extern void ex (int i, ...) __attribute__ ((__sentinel__(0)));
4
 
5
void f()
6
{
7
  ex (1, 0);            /* { dg-warning "missing sentinel in function call" "" } */
8
  ex (1, 0L);           /* { dg-warning "missing sentinel in function call" "" } */
9
  ex (1, (void *)0);
10
  ex (1, __null);       /* { dg-bogus "sentinel" } */
11
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.