diff options
| author | Mike Stump <mrs@apple.com> | 2009-11-03 23:32:42 +0000 |
|---|---|---|
| committer | Mike Stump <mrs@apple.com> | 2009-11-03 23:32:42 +0000 |
| commit | 6de15a8881602cae1aee50c2d066dde1a403413c (patch) | |
| tree | a4f832250967ef0378062f41127a73bb19c9fc84 /clang | |
| parent | 0fbbb0877dbb06d2f0191d6ef8b75b69c5035473 (diff) | |
| download | bcm5719-llvm-6de15a8881602cae1aee50c2d066dde1a403413c.tar.gz bcm5719-llvm-6de15a8881602cae1aee50c2d066dde1a403413c.zip | |
Test case for recent checkin.
llvm-svn: 85972
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/CodeGen/volatile.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/test/CodeGen/volatile.c b/clang/test/CodeGen/volatile.c index 87cb5ff4eb4..e17669008a3 100644 --- a/clang/test/CodeGen/volatile.c +++ b/clang/test/CodeGen/volatile.c @@ -1,8 +1,8 @@ // RUN: clang-cc -emit-llvm < %s -o %t && -// RUN: grep volatile %t | count 25 && +// RUN: grep volatile %t | count 29 && // RUN: grep memcpy %t | count 7 -// The number 25 comes from the current codegen for volatile loads; +// The number 29 comes from the current codegen for volatile loads; // if this number changes, it's not necessarily something wrong, but // something has changed to affect volatile load/store codegen @@ -38,6 +38,9 @@ volatile extv4 vVE; volatile struct {int x;} aggFct(void); +typedef volatile int volatile_int; +volatile_int vtS; + int main() { int i; @@ -62,6 +65,7 @@ int main() { i=VE.yx[1]; i=vVE.zy[1]; i = aggFct().x; + i=vtS; // store @@ -81,12 +85,14 @@ int main() { vBF.x=i; V[3]=i; vV[3]=i; + vtS=i; // other ops: ++S; ++vS; i+=S; i+=vS; + ++vtS; (void)vF2; vF2 = vF2; vF2 = vF2 = vF2; |

