aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGen/nobuiltin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/nobuiltin.c b/test/CodeGen/nobuiltin.c
new file mode 100644
index 0000000000..5a2bf1ef61
--- /dev/null
+++ b/test/CodeGen/nobuiltin.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fno-builtin -O1 -S -o - %s | FileCheck %s
+
+void fn() {
+ char content[2];
+ // CHECK: __strcpy_chk
+ __builtin___strcpy_chk(content, "", 1);
+}