Need to convert to LLVM code and not C.
authorBill Wendling <isanbard@gmail.com>
Sat, 26 Jan 2008 06:56:08 +0000 (06:56 +0000)
committerBill Wendling <isanbard@gmail.com>
Sat, 26 Jan 2008 06:56:08 +0000 (06:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46397 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll

index 896738ee0637b1601d6637a47bf15e213c87077c..909e8ee0e954055e0bfb9590f310f498da334695 100644 (file)
@@ -1,7 +1,6 @@
-// RUN: %llvmgcc -O2 -S -o - -emit-llvm %s | grep llvm.trap
-// RUN: %llvmgcc -O2 -S -o - -emit-llvm %s | grep unreachable
+; RUN: llvm-as < %s | llc -march=ppc32 | grep nop
 
-void bork() {
-  int *address = 0;
-  *address = 0;
+define void @bork() noreturn nounwind  {
+entry:
+        unreachable
 }