]> granicus.if.org Git - clang/commitdiff
add a comment to explain this test case
authorNuno Lopes <nunoplopes@sapo.pt>
Thu, 2 Aug 2012 12:12:26 +0000 (12:12 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Thu, 2 Aug 2012 12:12:26 +0000 (12:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161172 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/nobuiltin.c

index 5a2bf1ef618ef55c5a1b08e6857e372a0b836358..0a8e8bb4b6dacc538c5ce6df1f6311f9114a79bb 100644 (file)
@@ -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);
 }