1 /* Assignments via pointers pointing to global variables were being killed 2 by SSA-DCE. Test contributed by Paul Brook <paul@nowt.org> */ 3 4 int glob; 5 6 void fn2(int ** q)7fn2(int ** q) 8 { 9 *q = &glob; 10 } 11 test()12void test() 13 { 14 int *p; 15 16 fn2(&p); 17 18 *p=42; 19 } 20 main()21int main() 22 { 23 test(); 24 if (glob != 42) abort(); 25 exit (0); 26 } 27