From: Mike Stump Date: Tue, 3 Nov 2009 23:32:42 +0000 (+0000) Subject: Test case for recent checkin. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb9b010c346911fbefc49f8488dad8e090a0b5d4;p=clang Test case for recent checkin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85972 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/volatile.c b/test/CodeGen/volatile.c index 87cb5ff4eb..e17669008a 100644 --- a/test/CodeGen/volatile.c +++ b/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;