diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-04-18 23:46:44 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-04-18 23:46:44 +0000 |
| commit | 0892ace4688f42dae85bd00849e5ae50e422e275 (patch) | |
| tree | 0dbb7b62dfe05f0a04a405db710a1b2a21be418e /test/Transforms/FunctionResolve | |
| parent | a856db22fa4613a9744709930d75e330a94139e0 (diff) | |
Test case for forward declared global array with no size
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/FunctionResolve')
| -rw-r--r-- | test/Transforms/FunctionResolve/2003-04-18-ForwardDeclGlobal.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/FunctionResolve/2003-04-18-ForwardDeclGlobal.ll b/test/Transforms/FunctionResolve/2003-04-18-ForwardDeclGlobal.ll new file mode 100644 index 0000000000..6d71f66582 --- /dev/null +++ b/test/Transforms/FunctionResolve/2003-04-18-ForwardDeclGlobal.ll @@ -0,0 +1,13 @@ +; RUN: if as < %s | opt -funcresolve -disable-output 2>&1 | grep WARNING +; RUN: then exit 1 +; RUN: else exit 0 +; RUN: fi +%__popcount_tab = external constant [0 x ubyte] +%__popcount_tab = constant [4 x ubyte] c"\00\01\01\02" + +void %test() { + getelementptr [0 x ubyte]* %__popcount_tab, long 0, long 2 + getelementptr [4 x ubyte]* %__popcount_tab, long 0, long 2 + ret void +} + |
