Richard Smith 5bb4cdfaa9 Fix code that attempted to produce a diagnostic with one DiagnosticEngine, then
produce a note for that diagnostic either with a different DiagnosticEngine or
after calling DiagnosticEngine::Reset(). That didn't make any sense, and did the
wrong thing if the original diagnostic was suppressed.

llvm-svn: 170636
2012-12-20 02:22:15 +00:00

20 lines
164 B
C++

struct A {
int x;
};
struct B : A {
float y;
float foo();
};
struct C {
C(int i = 10);
C(const C&);
C &operator=(C&);
~C();
};
enum E {
b = 1
};