Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/guality/Og-static-wo-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* { dg-do run } */ | |
2 /* { dg-options "-g" } */ | |
3 | |
4 #include "../../gcc.dg/nop.h" | |
5 | |
6 static int x = 0; | |
7 | |
8 int | |
9 main (void) | |
10 { | |
11 asm volatile (NOP); /* { dg-final { gdb-test . "x" "0" } } */ | |
12 x = 1; | |
13 asm volatile (NOP); /* { dg-final { gdb-test . "x" "1" } } */ | |
14 return 0; | |
15 } |