of string literals ("hello"[2]). Also fixed a
problem in which empty string literals were not
being compiled correctly ((int)printf("") would
print garbage).
Added a testcase that covers both.
llvm-svn: 137247
19 lines
476 B
C
19 lines
476 B
C
//===-- main.c ----------------------------------------------------*- C -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
const char a[] = "abcde";
|
|
const char *z = "vwxyz";
|
|
|
|
printf("%s %s", a, z); // breakpoint 1
|
|
}
|