[cfe-commits] r136127 - /cfe/trunk/test/CodeGen/2002-03-11-LargeCharInString.c
Eric Christopher
echristo at apple.com
Tue Jul 26 13:29:08 PDT 2011
Author: echristo
Date: Tue Jul 26 15:29:08 2011
New Revision: 136127
URL: http://llvm.org/viewvc/llvm-project?rev=136127&view=rev
Log:
Migrate CodeGen/2002-03-11-LargeCharInString.c from test/FrontendC and
modify to avoid any outside includes.
Added:
cfe/trunk/test/CodeGen/2002-03-11-LargeCharInString.c
Added: cfe/trunk/test/CodeGen/2002-03-11-LargeCharInString.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2002-03-11-LargeCharInString.c?rev=136127&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/2002-03-11-LargeCharInString.c (added)
+++ cfe/trunk/test/CodeGen/2002-03-11-LargeCharInString.c Tue Jul 26 15:29:08 2011
@@ -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");
+}
More information about the cfe-commits
mailing list