summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/pragma-1.c
blob: 7fab02541ae5490992fc9cbf8e9dc22eaa7021de (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-message "function it appears in" "reminder message" { target *-*-* } { 9 } } */ 
  }
}