summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/pragma-1.c
blob: 4b9295f781de19d4e8daad848a2496485890f571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Verify that preprocessor does not insert redundant newlines
   after #pragma */
/* { dg-do compile } */
int
main ()
{
#pragma unknown
  {
    error;
  /* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } { 9 } } */
  /* { dg-error "function it appears in" "reminder message" { target *-*-* } { 9 } } */ 
  }
}