2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -march=c | not grep extern.*msg
|
2008-02-19 09:41:04 +08:00
|
|
|
; PR472
|
2004-12-04 01:18:42 +08:00
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
@msg = internal global [6 x i8] c"hello\00" ; <[6 x i8]*> [#uses=1]
|
2004-12-04 01:18:42 +08:00
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
define i8* @foo() {
|
2004-12-04 01:18:42 +08:00
|
|
|
entry:
|
2008-02-19 09:41:04 +08:00
|
|
|
ret i8* getelementptr ([6 x i8]* @msg, i32 0, i32 0)
|
2004-12-04 01:18:42 +08:00
|
|
|
}
|
2008-02-19 09:41:04 +08:00
|
|
|
|