add test for PR13497

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161119 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/nobuiltin.c b/test/CodeGen/nobuiltin.c
new file mode 100644
index 0000000..5a2bf1e
--- /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);
+}