summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr18241-5.c
blob: 0ddb55f75be1b7328d51da1511b065c5de993035 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do run } */
/* { dg-options "-O1" } */ 

void abort (void);

int main ()
{
  int a;
  volatile int *b = &a;
  a = 1;
  if (*b != 1)
    abort ();
  return 0;
}