blob: 63eaeef46a418fc52d56a708eb23c405bcbab5f5 [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3/* GCC was not escaping quotes in string constants correctly, so this would
4 * get emitted:
5 * %.LC1 = internal global [32 x sbyte] c"*** Word "%s" on line %d is not\00"
6 */
7
8const char *Foo() {
9 return "*** Word \"%s\" on line %d is not";
10}