aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2005-02-27-MarkGlobalConstant.c
blob: b9fbbb6369a5c4b32684690046ed0f8a89d545db (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %llvmgcc -xc %s -S -o - | grep {private constant }

// The synthetic global made by the CFE for big initializer should be marked
// constant.

void bar();
void foo() {
  char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd";
  bar(Blah);
}