1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc /* GCC is not outputting the static array to the LLVM backend, so bad things
4*f4a2713aSLionel Sambuc * happen. Note that if this is defined static, everything seems fine.
5*f4a2713aSLionel Sambuc */
test(unsigned X)6*f4a2713aSLionel Sambuc double test(unsigned X) {
7*f4a2713aSLionel Sambuc double student_t[30]={0.0 , 12.706 , 4.303 , 3.182 , 2.776 , 2.571 ,
8*f4a2713aSLionel Sambuc 2.447 , 2.365 , 2.306 , 2.262 , 2.228 ,
9*f4a2713aSLionel Sambuc 2.201 , 2.179 , 2.160 , 2.145 , 2.131 ,
10*f4a2713aSLionel Sambuc 2.120 , 2.110 , 2.101 , 2.093 , 2.086 ,
11*f4a2713aSLionel Sambuc 2.080 , 2.074 , 2.069 , 2.064 , 2.060 ,
12*f4a2713aSLionel Sambuc 2.056 , 2.052 , 2.048 , 2.045 };
13*f4a2713aSLionel Sambuc return student_t[X];
14*f4a2713aSLionel Sambuc }
15