diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/comdat4-aux.cc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/comdat4-aux.cc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/comdat4-aux.cc b/gcc/testsuite/g++.old-deja/g++.other/comdat4-aux.cc new file mode 100644 index 00000000000..e0556a5292c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/comdat4-aux.cc @@ -0,0 +1,40 @@ +extern void +bar (int x); + +inline void +foo (int i) +{ + switch (i) + { + case 3: + case 5: + case 6: + case 9: + case 15: + bar (1); + break; + case 2: + case 4: + case 7: + case 10: + case 11: + case 12: + bar (2); + break; + case 0: + case 1: + case 8: + case 13: + case 16: + bar (3); + break; + case 14: + bar (4); + break; + default: + bar (5); + break; + } +} + +void *fooaddr2 = (void *) foo; |