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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [Wunknown-pragmas-1.c] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
/* Copyright 2003 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do compile } */
4
/* { dg-options "-Wunknown-pragmas" } */
5
 
6
/* Make sure we get warnings in the expected lines.  */
7
 
8
#pragma unknown1 /* { dg-warning "unknown1" "unknown1" } */
9
 
10
#define COMMA ,
11
#define FOO(x) x
12
#define BAR(x) _Pragma("unknown_before") x
13
#define BAZ(x) x _Pragma("unknown_after")
14
 
15
int _Pragma("unknown2") bar1; /* { dg-warning "unknown2" "unknown2" } */
16
 
17
FOO(int _Pragma("unknown3") bar2); /* { dg-warning "unknown3" "unknown3" } */
18
 
19
int BAR(bar3); /* { dg-warning "unknown_before" "unknown_before 1" } */
20
 
21
BAR(int bar4); /* { dg-warning "unknown_before" "unknown_before 2" } */
22
 
23
int BAZ(bar5); /* { dg-warning "unknown_after" "unknown_after 1" } */
24
 
25
int BAZ(bar6;) /* { dg-warning "unknown_after" "unknown_after 2" } */
26
 
27
FOO(int bar7; _Pragma("unknown4")) /* { dg-warning "unknown4" "unknown4" } */
28
 
29
#pragma unknown5 /* { dg-warning "unknown5" "unknown5" } */

powered by: WebSVN 2.1.0

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