aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend/2005-02-27-MarkGlobalConstant.c
blob: 100c79c82bf29116f168df9260ab8c2ec0d6f673 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %llvmgcc -xc %s -S -o - | grep 'internal 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);
}