From 841d8e90acd763017a0b97b5bcb35a736a3648ca Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 19 Nov 2003 21:37:52 +0000 Subject: [PATCH] New testcase for PR133 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10095 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2003-11-19-AddressOfRegister.c.tr | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/CFrontend/2003-11-19-AddressOfRegister.c.tr 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; +} + -- 2.34.1