blob: 8acab764d7806dd4d6265b3f5fe687660d4aaedd [file] [log] [blame]
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00001; RUN: llvm-as < %s | llc -march=c | not grep extern.*msg
2; 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