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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test for syntax support of various attribute permutations.
2
 
3
int
4
__attribute__((noreturn))
5
__attribute__((unused))
6
one(void); // OK
7
 
8
__attribute__((noreturn))
9
__attribute__((unused))
10
int
11
two(void); // OK
12
 
13
int
14
__attribute__((unused))
15
three (void)
16
__attribute__((noreturn)); // OK
17
 
18
__attribute__((unused))
19
int
20
four (void)
21
__attribute__((noreturn)); // OK
22
 
23
int
24
five(void)
25
__attribute__((noreturn))
26
__attribute__((unused));  // OK
27
 
28
__attribute__((noreturn))
29
int
30
__attribute__((unused)) // parse error before '__attribute__' in C++
31
six (void);              // OK in C

powered by: WebSVN 2.1.0

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