OSDN Git Service

2009-02-02 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / warn / Wdisallowed-functions-2.C
1 /* { dg-do compile } */
2 /* { dg-options "-Wdisallowed-function-list=foo,foobar,bar,foobar" } */
3
4 int foobar (int i)
5 {
6   return (i * 5);
7 }
8
9 int foobar1 (int i)
10 {
11   return foobar (i);  /* { dg-warning "disallowed call to 'foobar'" } */
12 }