Dan Gohman | be2d4e7 | 2010-09-23 00:33:13 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-extract -func foo -S < %s | FileCheck %s |
| 2 | ; RUN: llvm-extract -delete -func foo -S < %s | FileCheck --check-prefix=DELETE %s |
| 3 | ; RUN: llvm-as < %s > %t |
| 4 | ; RUN: llvm-extract -func foo -S %t | FileCheck %s |
| 5 | ; RUN: llvm-extract -delete -func foo -S %t | FileCheck --check-prefix=DELETE %s |
| 6 | |
| 7 | ; llvm-extract uses lazy bitcode loading, so make sure it correctly reads |
| 8 | ; from bitcode files in addition to assembly files. |
| 9 | |
| 10 | ; CHECK: define void @foo() { |
| 11 | ; CHECK: ret void |
| 12 | ; CHECK: } |
| 13 | ; DELETE: define void @bar() { |
| 14 | ; DELETE: ret void |
| 15 | ; DELETE: } |
| 16 | |
| 17 | define void @foo() { |
| 18 | ret void |
| 19 | } |
| 20 | define void @bar() { |
| 21 | ret void |
| 22 | } |