OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [attrib1.C] - Diff between revs 301 and 384

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 384
// Test for interpretation of attribute immediately before function name.
// Test for interpretation of attribute immediately before function name.
// Origin: Joseph Myers 
// Origin: Joseph Myers 
// { dg-do compile }
// { dg-do compile }
// An attribute immediately before the function name should in this
// An attribute immediately before the function name should in this
// case properly apply to the return type, but compatibility with
// case properly apply to the return type, but compatibility with
// existing code using this form requires it to apply to the function
// existing code using this form requires it to apply to the function
// type instead in the case of attributes applying to function types,
// type instead in the case of attributes applying to function types,
// and to the declaration in the case of attributes applying to declarations.
// and to the declaration in the case of attributes applying to declarations.
int ****__attribute__((format(printf, 1, 2))) foo(const char *, ...);
int ****__attribute__((format(printf, 1, 2))) foo(const char *, ...);
 
 

powered by: WebSVN 2.1.0

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