summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/string-init.c
blob: 38c7ec05759799f463d817df38020a4e5f7cb657 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang-cc -emit-llvm %s -o %t &&
// RUN: grep 'internal 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" };
}

OpenPOWER on IntegriCloud