Files
clang-p2996/lldb/test/lang/c/strings/main.c
Sean Callanan 5207a340e5 Fixed a problem that prevented access to members
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
2011-08-10 21:05:52 +00:00

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
}