summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pragma-darwin-2.c
blob: 4bbecef0120120c218c1a46c29fa1b4adecbbc5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Darwin (Mac OS X) pragma exercises.  */

/* { dg-do compile { target *-*-darwin* } } */

/* The mark pragma is valid at any point in the program.  Fortunately
   the compiler only needs to ignore it.  It's also followed only
   by pp-tokens, not necessarily real C tokens.  */

void foo(void) 
{
  if (1) {
    ;
  }
  else if (1) {
    ;
  }
#pragma mark "last case" "hi"
  else if (1) {
    ;
  }
}

#pragma mark 802.11x 1_2_3
#pragma mark •••• marker ••••