blob: 99de837dc79ae942c61024f159e2e1fa084756fa [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -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