2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / ext / attrib11.C
blob26bc7907c2e6ba29c6ff4e5be73e3d70bbd3ac91
1 // { dg-do compile }
2 // { dg-options "-Wall" }
4 // Copyright (C) 2003 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 30 Dec 2003 <nathan@codesourcery.com>
8 // PR c++/13507, spurious warning due to attribute clobbering
9 extern "C" {
10   extern int printf (__const char *__restrict __format, ...) throw ();
11   extern int scanf (__const char *__restrict __format, ...) throw ();
14 void foo(unsigned int x)
16   printf ("%d\n", x);