blob: 822b8eecf7d7b67e722335d546b50ce0144ce16f [file] [log] [blame]
Rafael Espindola1ed1a592010-06-16 19:01:17 +00001// RUN: %clang_cc1 -triple arm-unknown-linux-gnueabi -emit-llvm -o - %s | FileCheck %s
Daniel Dunbar34771b52009-09-14 04:33:21 +00002
Rafael Espindola75d0f822010-06-16 17:49:52 +00003// CHECK: declare i32 @printf(i8*, ...)
Daniel Dunbar34771b52009-09-14 04:33:21 +00004void f0() {
5 printf("a\n");
6}
7
Rafael Espindola75d0f822010-06-16 17:49:52 +00008// CHECK: call void @exit
Daniel Dunbar34771b52009-09-14 04:33:21 +00009// CHECK: unreachable
10void f1() {
11 exit(1);
12}
Eli Friedmanc2853722011-03-24 05:09:45 +000013
14// CHECK: call i8* @strstr{{.*}} nounwind
15char* f2(char* a, char* b) {
16 return __builtin_strstr(a, b);
17}