aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/string-init.c
blob: 4a808512601ee3afbb5c93a6977c3c5145a9ca0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// RUN: clang-cc -emit-llvm %s -o %t &&
// RUN: grep 'private constant \[10 x i8\]' %t &&
// RUN: not grep -F "[5 x i8]" %t &&
// RUN: not grep "store " %t

void test(void) {
  char a[10] = "asdf";
  char b[10] = { "asdf" };
}