Rafael Espindola | 1ed1a59 | 2010-06-16 19:01:17 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple arm-unknown-linux-gnueabi -emit-llvm -o - %s | FileCheck %s |
Daniel Dunbar | 34771b5 | 2009-09-14 04:33:21 +0000 | [diff] [blame] | 2 | |
Rafael Espindola | 75d0f82 | 2010-06-16 17:49:52 +0000 | [diff] [blame] | 3 | // CHECK: declare i32 @printf(i8*, ...) |
Daniel Dunbar | 34771b5 | 2009-09-14 04:33:21 +0000 | [diff] [blame] | 4 | void f0() { |
| 5 | printf("a\n"); |
| 6 | } |
| 7 | |
Rafael Espindola | 75d0f82 | 2010-06-16 17:49:52 +0000 | [diff] [blame] | 8 | // CHECK: call void @exit |
Daniel Dunbar | 34771b5 | 2009-09-14 04:33:21 +0000 | [diff] [blame] | 9 | // CHECK: unreachable |
| 10 | void f1() { |
| 11 | exit(1); |
| 12 | } |
Eli Friedman | c285372 | 2011-03-24 05:09:45 +0000 | [diff] [blame] | 13 | |
| 14 | // CHECK: call i8* @strstr{{.*}} nounwind |
| 15 | char* f2(char* a, char* b) { |
| 16 | return __builtin_strstr(a, b); |
| 17 | } |