New testcase
authorChris Lattner <sabre@nondot.org>
Thu, 14 Mar 2002 20:16:23 +0000 (20:16 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Mar 2002 20:16:23 +0000 (20:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1874 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2002-03-14-QuotesInStrConst.c [new file with mode: 0644]

diff --git a/test/CFrontend/2002-03-14-QuotesInStrConst.c b/test/CFrontend/2002-03-14-QuotesInStrConst.c
new file mode 100644 (file)
index 0000000..c18157c
--- /dev/null
@@ -0,0 +1,8 @@
+/* GCC was not escaping quotes in string constants correctly, so this would 
+ * get emitted:
+ *  %.LC1 = internal global [32 x sbyte] c"*** Word "%s" on line %d is not\00"
+ */
+
+const char *Foo() {
+       return "*** Word \"%s\" on line %d is not";
+}