From: Eric Christopher Date: Tue, 26 Jul 2011 20:29:08 +0000 (+0000) Subject: Migrate CodeGen/2002-03-11-LargeCharInString.c from test/FrontendC and X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ebf2296d4727eb9fe6173e92e20541c94d34f34;p=clang Migrate CodeGen/2002-03-11-LargeCharInString.c from test/FrontendC and modify to avoid any outside includes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136127 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/2002-03-11-LargeCharInString.c b/test/CodeGen/2002-03-11-LargeCharInString.c new file mode 100644 index 0000000000..927087349b --- /dev/null +++ b/test/CodeGen/2002-03-11-LargeCharInString.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -emit-llvm %s -o /dev/null + +int strcmp(const char *s1, const char *s2); + +int test(char *X) { + /* LLVM-GCC used to emit: + %.LC0 = internal global [3 x sbyte] c"\1F\FFFFFF8B\00" + */ + return strcmp(X, "\037\213"); +}