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