diff options
Diffstat (limited to 'test/CodeGen/nobuiltin.c')
-rw-r--r-- | test/CodeGen/nobuiltin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/nobuiltin.c b/test/CodeGen/nobuiltin.c new file mode 100644 index 0000000..0a8e8bb --- /dev/null +++ b/test/CodeGen/nobuiltin.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -fno-builtin -O1 -S -o - %s | FileCheck %s + +void PR13497() { + char content[2]; + // make sure we don't optimize this call to strcpy() + // CHECK: __strcpy_chk + __builtin___strcpy_chk(content, "", 1); +} |