mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 04:06:06 +00:00

From https://bugs.llvm.org/show_bug.cgi?id=47219. It was crashing before the commit 1e14588d0f68. Differential Revision: https://reviews.llvm.org/D92573
25 lines
355 B
C++
25 lines
355 B
C++
// Test with pch.
|
|
// RUN: %clang_cc1 -emit-pch -std=c++17 -o %t %s
|
|
// RUN: %clang_cc1 -include-pch %t -emit-llvm -std=c++17 -o - %s
|
|
|
|
#ifndef HEADER
|
|
#define HEADER
|
|
|
|
namespace RP47219 {
|
|
typedef int MyInt;
|
|
template <typename T>
|
|
class Some {
|
|
public:
|
|
explicit Some(T, MyInt) {}
|
|
};
|
|
|
|
struct Foo {};
|
|
void ParseNatural() {
|
|
Some(Foo(), 1);
|
|
}
|
|
}
|
|
|
|
#else
|
|
|
|
#endif
|