From: Chris Lattner Date: Wed, 19 Nov 2003 21:37:52 +0000 (+0000) Subject: New testcase for PR133 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=841d8e90acd763017a0b97b5bcb35a736a3648ca;p=oota-llvm.git New testcase for PR133 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10095 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CFrontend/2003-11-19-AddressOfRegister.c.tr b/test/CFrontend/2003-11-19-AddressOfRegister.c.tr new file mode 100644 index 00000000000..ae37cbd2511 --- /dev/null +++ b/test/CFrontend/2003-11-19-AddressOfRegister.c.tr @@ -0,0 +1,12 @@ +// RUN: %llvmgcc -xc %s -S -o /dev/null 2>&1 | not grep 'warning' + +struct item { + short delta[4]; +}; + +int TEST(int nt) { + register struct item *aa; + aa[nt].delta; + return 1; +} +