xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/nobuiltin.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fno-builtin -O1 -S -o - %s | FileCheck %s
2*f4a2713aSLionel Sambuc 
PR13497()3*f4a2713aSLionel Sambuc void PR13497() {
4*f4a2713aSLionel Sambuc   char content[2];
5*f4a2713aSLionel Sambuc   // make sure we don't optimize this call to strcpy()
6*f4a2713aSLionel Sambuc   // CHECK: __strcpy_chk
7*f4a2713aSLionel Sambuc   __builtin___strcpy_chk(content, "", 1);
8*f4a2713aSLionel Sambuc }
9