aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/comdat3.C
blob: 2a538cad9241baf62b2ebadc411a3258408b0478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do run  }
// { dg-additional-sources " comdat3-aux.cc" }
// Test that duplicate elimination of implicit instantiations of static
// data members works properly.

// Additional files: comdat3.h

#include "comdat3.h"

int main ()
{
  const bool *p = &A<int>::b;
  f ();
}