diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-19 21:37:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-19 21:37:52 +0000 |
commit | 841d8e90acd763017a0b97b5bcb35a736a3648ca (patch) | |
tree | 37d6c52a32980b8ad8e8b969c05cf076efc6ea58 /test | |
parent | 236c4d42146682539d60aa0d050da988665641ab (diff) | |
download | external_llvm-841d8e90acd763017a0b97b5bcb35a736a3648ca.zip external_llvm-841d8e90acd763017a0b97b5bcb35a736a3648ca.tar.gz external_llvm-841d8e90acd763017a0b97b5bcb35a736a3648ca.tar.bz2 |
New testcase for PR133
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CFrontend/2003-11-19-AddressOfRegister.c.tr | 12 |
1 files changed, 12 insertions, 0 deletions
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 0000000..ae37cbd --- /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; +} + |