gcc/testsuite/g++.old-deja/g++.other/comdat3.C
raw| 1 | // { dg-do run } |
| 2 | // { dg-additional-sources " comdat3-aux.cc" } |
| 3 | // Test that duplicate elimination of implicit instantiations of static |
| 4 | // data members works properly. |
| 5 | |
| 6 | // Additional files: comdat3.h |
| 7 | |
| 8 | #include "comdat3.h" |
| 9 | |
| 10 | int main () |
| 11 | { |
| 12 | const bool *p = &A<int>::b; |
| 13 | f (); |
| 14 | } |