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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [pragma-2.c] - Blame information for rev 328

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

Line No. Rev Author Line
1 298 jeremybenn
/* Verify that preprocessor does not insert redundant newlines
2
   after #pragma, also check this for #include, #define and #undef */
3
/* { dg-do compile } */
4
/* { dg-options "-dD" } */
5
#include <stdio.h>
6
 
7
#undef unknow_def
8
 
9
int main () {
10
 
11
#pragma unknown
12
  {}
13
  error;
14
  /* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } { 13 } } */
15
  /* { dg-message "function it appears in" "reminder message" { target *-*-* } { 13 } } */
16
}

powered by: WebSVN 2.1.0

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