From f5c04ef6d3d7bcff1fb297063485ed239724e63f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 14 Mar 2002 20:16:23 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1874 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2002-03-14-QuotesInStrConst.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/CFrontend/2002-03-14-QuotesInStrConst.c diff --git a/test/CFrontend/2002-03-14-QuotesInStrConst.c b/test/CFrontend/2002-03-14-QuotesInStrConst.c new file mode 100644 index 00000000000..c18157c2b21 --- /dev/null +++ b/test/CFrontend/2002-03-14-QuotesInStrConst.c @@ -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"; +} -- 2.34.1