mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 18:26:04 +00:00
35 lines
344 B
C++
35 lines
344 B
C++
// RUN: clang -fsyntax-only -Wunused-variable -verify %s
|
|
|
|
template<typename T> void f() {
|
|
T t;
|
|
t = 17;
|
|
}
|
|
|
|
// PR5407
|
|
struct A { A(); };
|
|
struct B { ~B(); };
|
|
void f() {
|
|
A a;
|
|
B b;
|
|
}
|
|
|
|
// PR5531
|
|
namespace PR5531 {
|
|
struct A {
|
|
};
|
|
|
|
struct B {
|
|
B(int);
|
|
};
|
|
|
|
struct C {
|
|
~C();
|
|
};
|
|
|
|
void test() {
|
|
A();
|
|
B(17);
|
|
C();
|
|
}
|
|
}
|