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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [attrib1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test for interpretation of attribute immediately before function name.
2
// Origin: Joseph Myers 
3
// { dg-do compile }
4
 
5
// An attribute immediately before the function name should in this
6
// case properly apply to the return type, but compatibility with
7
// existing code using this form requires it to apply to the function
8
// type instead in the case of attributes applying to function types,
9
// and to the declaration in the case of attributes applying to declarations.
10
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.