summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/nobuiltin.c
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-08-02 12:12:26 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-08-02 12:12:26 +0000
commitc65c24b1786dc8209d94f7ed857a3670e4ff006b (patch)
treed4c0808dfe8a57c43867941c83db3dc937264967 /clang/test/CodeGen/nobuiltin.c
parent79a4424f8e6ad609f27c1c39eeab67de57f34ef5 (diff)
downloadbcm5719-llvm-c65c24b1786dc8209d94f7ed857a3670e4ff006b.tar.gz
bcm5719-llvm-c65c24b1786dc8209d94f7ed857a3670e4ff006b.zip
add a comment to explain this test case
llvm-svn: 161172
Diffstat (limited to 'clang/test/CodeGen/nobuiltin.c')
-rw-r--r--clang/test/CodeGen/nobuiltin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CodeGen/nobuiltin.c b/clang/test/CodeGen/nobuiltin.c
index 5a2bf1ef618..0a8e8bb4b6d 100644
--- a/clang/test/CodeGen/nobuiltin.c
+++ b/clang/test/CodeGen/nobuiltin.c
@@ -1,7 +1,8 @@
// RUN: %clang_cc1 -fno-builtin -O1 -S -o - %s | FileCheck %s
-void fn() {
+void PR13497() {
char content[2];
+ // make sure we don't optimize this call to strcpy()
// CHECK: __strcpy_chk
__builtin___strcpy_chk(content, "", 1);
}
OpenPOWER on IntegriCloud