view gcc/testsuite/g++.dg/ext/attrib11.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

// { dg-do compile }
// { dg-options "-Wall" }

// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 30 Dec 2003 <nathan@codesourcery.com>


// PR c++/13507, spurious warning due to attribute clobbering
extern "C" {
  extern int printf (__const char *__restrict __format, ...) throw ();
  extern int scanf (__const char *__restrict __format, ...) throw ();
}

void foo(unsigned int x)
{
  printf ("%d\n", x);
}