]> granicus.if.org Git - clang/commitdiff
add test for PR13497
authorNuno Lopes <nunoplopes@sapo.pt>
Wed, 1 Aug 2012 17:02:30 +0000 (17:02 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Wed, 1 Aug 2012 17:02:30 +0000 (17:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161119 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/nobuiltin.c [new file with mode: 0644]

diff --git a/test/CodeGen/nobuiltin.c b/test/CodeGen/nobuiltin.c
new file mode 100644 (file)
index 0000000..5a2bf1e
--- /dev/null
@@ -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);
+}