blob: 78e9bacd9e7763df5dbcd6086ae8aa5d766e6150 [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -march=c | not grep extern.*msg
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00002; PR472
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00004@msg = internal global [6 x i8] c"hello\00" ; <[6 x i8]*> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00006define i8* @foo() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00008 ret i8* getelementptr ([6 x i8]* @msg, i32 0, i32 0)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000010