Nuno Lopes | bf1febd | 2012-08-01 17:02:30 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fno-builtin -O1 -S -o - %s | FileCheck %s |
| 2 | |
Nuno Lopes | 52a8b00 | 2012-08-02 12:12:26 +0000 | [diff] [blame^] | 3 | void PR13497() { |
Nuno Lopes | bf1febd | 2012-08-01 17:02:30 +0000 | [diff] [blame] | 4 | char content[2]; |
Nuno Lopes | 52a8b00 | 2012-08-02 12:12:26 +0000 | [diff] [blame^] | 5 | // make sure we don't optimize this call to strcpy() |
Nuno Lopes | bf1febd | 2012-08-01 17:02:30 +0000 | [diff] [blame] | 6 | // CHECK: __strcpy_chk |
| 7 | __builtin___strcpy_chk(content, "", 1); |
| 8 | } |