aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/anon2.C
blob: 75285ade3798fb1b6c2b317b6d64f08bd10edade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/28279
// finish_static_data_member_decl was confused by the anonymous
// namespace causing TREE_PUBLIC to be unset

template<typename T>
struct is_pointer_impl {
    static const bool value = true;
};

namespace {
  class prefix_name_mapper {};
}

static const bool val = is_pointer_impl<prefix_name_mapper>::value;