diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-21 23:17:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-21 23:17:45 +0000 |
commit | de20d44b3e8833dcf97480f79c33b32b2252f716 (patch) | |
tree | 6c1b8128a25b99fafa7e5706460179745f6b6d39 /llvm/test/Regression/Transforms/FunctionResolve | |
parent | 4f2581f828b23854ba62fca09c8bbcf69a4616ab (diff) | |
download | bcm5719-llvm-de20d44b3e8833dcf97480f79c33b32b2252f716.tar.gz bcm5719-llvm-de20d44b3e8833dcf97480f79c33b32b2252f716.zip |
New testcase: globals should be linked if they are the wrong type. We should
just moan loudly.
llvm-svn: 9358
Diffstat (limited to 'llvm/test/Regression/Transforms/FunctionResolve')
-rw-r--r-- | llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll b/llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll new file mode 100644 index 00000000000..4a6028fda43 --- /dev/null +++ b/llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | opt -funcresolve -disable-output 2>&1 | grep WARNING + +%X = external global int +%Z = global int* %X + +%X = global float 1.0 +%Y = global float* %X + +implementation + |