aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/nothing-1.c
blob: d50c92a67c313613e1f310411dfe4ffa94691268 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma omp nothing

struct S
{
  #pragma omp nothing
  int s;
};

int
foo (int i)
{
  #pragma omp nothing
  if (0)
    #pragma omp nothing
    i++;
  if (1)
    ;
  else
    #pragma omp nothing
    i++;
  switch (0)
    #pragma omp nothing
    {
    default:
      break;
    }
  while (0)
    #pragma omp nothing
    i++;
  for (; 0;)
    #pragma omp nothing
    i++;
  lab:
  #pragma omp nothing
  i++;
  return i;
}