clang/test/SemaCXX/PR97308.cpp
raw| 1 | // RUN: %clang_cc1 -o - -emit-llvm -triple x86_64-linux-gnu %s |
| 2 | |
| 3 | // Check there are no crash issue CodeGen action. |
| 4 | // https://github.com/llvm/llvm-project/pull/97308 |
| 5 | struct a { |
| 6 | } constexpr b; |
| 7 | class c { |
| 8 | public: |
| 9 | c(a); |
| 10 | }; |
| 11 | class B { |
| 12 | public: |
| 13 | using d = int; |
| 14 | struct e { |
| 15 | enum { f } g; |
| 16 | int h; |
| 17 | c i; |
| 18 | d j{}; |
| 19 | }; |
| 20 | }; |
| 21 | B::e k{B::e::f, int(), b}; |