]> granicus.if.org Git - clang/commitdiff
Migrate CodeGen/2002-03-11-LargeCharInString.c from test/FrontendC and
authorEric Christopher <echristo@apple.com>
Tue, 26 Jul 2011 20:29:08 +0000 (20:29 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 26 Jul 2011 20:29:08 +0000 (20:29 +0000)
modify to avoid any outside includes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136127 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/2002-03-11-LargeCharInString.c [new file with mode: 0644]

diff --git a/test/CodeGen/2002-03-11-LargeCharInString.c b/test/CodeGen/2002-03-11-LargeCharInString.c
new file mode 100644 (file)
index 0000000..9270873
--- /dev/null
@@ -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");
+}