Alp Toker | 2f0ca41 | 2013-10-26 15:43:55 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -O2 -fno-builtin -o - | FileCheck %s |
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 2 | // Check that -fno-builtin is honored. |
| 3 | |
| 4 | extern int printf(const char*, ...); |
Alp Toker | 2f0ca41 | 2013-10-26 15:43:55 +0000 | [diff] [blame] | 5 | |
| 6 | // CHECK: define void {{.*}}foo( |
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 7 | void foo(const char *msg) { |
Alp Toker | 2f0ca41 | 2013-10-26 15:43:55 +0000 | [diff] [blame] | 8 | // CHECK: call {{.*}}printf |
| 9 | printf("%s\n",msg); |
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 10 | } |