1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
26 lines
370 B
C++
26 lines
370 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
struct mystruct {
|
|
int member;
|
|
};
|
|
|
|
template <int i>
|
|
int foo() {
|
|
mystruct s[1];
|
|
return s->member;
|
|
}
|
|
|
|
int main() {
|
|
foo<1>();
|
|
}
|
|
|
|
// PR7405
|
|
struct hb_sanitize_context_t {
|
|
int start;
|
|
};
|
|
template <typename Type> static bool sanitize() {
|
|
hb_sanitize_context_t c[1];
|
|
return !c->start;
|
|
}
|
|
bool closure = sanitize<int>();
|