blob: 63eaeef46a418fc52d56a708eb23c405bcbab5f5 [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Tanya Lattnere9af5d12004-11-06 22:41:00 +00002
Jeff Cohenb02fbfc2005-04-23 21:26:11 +00003/* GCC was not escaping quotes in string constants correctly, so this would
Chris Lattnerf5c04ef2002-03-14 20:16:23 +00004 * get emitted:
5 * %.LC1 = internal global [32 x sbyte] c"*** Word "%s" on line %d is not\00"
6 */
7
8const char *Foo() {
Jeff Cohenb02fbfc2005-04-23 21:26:11 +00009 return "*** Word \"%s\" on line %d is not";
Chris Lattnerf5c04ef2002-03-14 20:16:23 +000010}