1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fno-toplevel-reorder" } */ 3 4 __attribute__((no_reorder)) int foobar; 5 6 static int barbar; 7 int bozo; 8 9 /* { dg-final { scan-assembler "foobar" } } */ 10 /* { dg-final { scan-assembler "bozo" } } */ 11 /* { dg-final { scan-assembler "barbar" } } */ 12