blob: fd2febe895b47a6934b44da523f817e7daef82b2 [file] [log] [blame]
// Regression test for http://code.google.com/p/thread-sanitizer/issues/detail?id=3.
// The C++ variant is much more compact that the LLVM IR equivalent.
#include <stdio.h>
struct AAA { virtual long aaa () { return 0; } };
struct BBB: virtual AAA { unsigned long bbb; };
struct CCC: virtual AAA { };
struct DDD: CCC, BBB { DDD (); };
DDD::DDD() { }
int main() {
DDD d;
printf("OK\n");
}
// CHECK: OK