summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-26 20:29:08 +0000
committerEric Christopher <echristo@apple.com>2011-07-26 20:29:08 +0000
commit4ebf2296d4727eb9fe6173e92e20541c94d34f34 (patch)
treef6a5928e5e5b3ad6b33b231eff9a63c30b3faa5e /test/CodeGen
parentd9a5459e980c14e2e19edef8dd31d7020268b162 (diff)
downloadclang-4ebf2296d4727eb9fe6173e92e20541c94d34f34.tar.gz
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
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/2002-03-11-LargeCharInString.c10
1 files changed, 10 insertions, 0 deletions
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");
+}