summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/pr45983_0.C
blob: a2c9ba6092d0e05e60201e58c7ec9dd75c948ba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/45983

template <int N>
class T1 {
    int m[N];
    typedef float scalar_type_t;
    typedef scalar_type_t scalar_array_t[1];
    const scalar_array_t &decay(void) const;
};
class T2 {
public:
    float vals[1];
    float get_value(void) const { return vals[0]; }
};
T2 channel_params;
float output_audio(void) {
    return channel_params.get_value();
}

int main(){}