summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-09 23:56:17 +0000
committerChris Lattner <sabre@nondot.org>2004-08-09 23:56:17 +0000
commit008fad0236f6b498a541f39304429565b131888d (patch)
tree4e7f22590ba8b4132451c7e0ba70431aeb09b62e /test
parentb05daff7faf694a8d18f00ef00132384c8207cd4 (diff)
downloadllvm-008fad0236f6b498a541f39304429565b131888d.tar.gz
llvm-008fad0236f6b498a541f39304429565b131888d.tar.bz2
llvm-008fad0236f6b498a541f39304429565b131888d.tar.xz
This testcase causes the CBE to generate code that is not legal C.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/CBackend/2004-08-09-va-end-null.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2004-08-09-va-end-null.ll b/test/CodeGen/CBackend/2004-08-09-va-end-null.ll
new file mode 100644
index 0000000000..7828de39eb
--- /dev/null
+++ b/test/CodeGen/CBackend/2004-08-09-va-end-null.ll
@@ -0,0 +1,7 @@
+declare void %llvm.va_end(sbyte*)
+
+void %test() {
+ call void %llvm.va_end( sbyte* null )
+ ret void
+}
+