summaryrefslogtreecommitdiff
path: root/tests/headers/issue-569-non-type-template-params-causing-layout-test-failures.hpp
blob: 297d1112912ec0a5f9a23e10209a7bb44473d9f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// bindgen-flags: --rustified-enum ".*" -- -std=c++14

// Generated by C-Reduce, cleaned up and given names for readability.

template <int, typename>
struct HasNonTypeTemplateParam {
    // But doesn't use the non-type template param nor its type param...
};

enum {
    ENUM_VARIANT_1,
    ENUM_VARIANT_2
};

namespace JS {

template <typename T>
using Alias = HasNonTypeTemplateParam<ENUM_VARIANT_1, T>;

template <typename U>
class Base {
    Alias<U> f;
};

class AutoIdVector : Base<int> {};

}