2012-08-02 01:02:30 +08:00
|
|
|
// RUN: %clang_cc1 -fno-builtin -O1 -S -o - %s | FileCheck %s
|
|
|
|
|
2012-08-02 20:12:26 +08:00
|
|
|
void PR13497() {
|
2012-08-02 01:02:30 +08:00
|
|
|
char content[2];
|
2012-08-02 20:12:26 +08:00
|
|
|
// make sure we don't optimize this call to strcpy()
|
2012-08-02 01:02:30 +08:00
|
|
|
// CHECK: __strcpy_chk
|
|
|
|
__builtin___strcpy_chk(content, "", 1);
|
|
|
|
}
|