blob: 37f311d4b93b55ca2da9c8355dfece8d85574d31 [file] [log] [blame]
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00001; RUN: llvm-as < %s | llc -march=c | grep {\\* *volatile *\\*}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00003@G = external global void ()* ; <void ()**> [#uses=2]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00005define void @test() {
6 volatile store void ()* @test, void ()** @G
7 volatile load void ()** @G ; <void ()*>:1 [#uses=0]
8 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000010