1 // Regression test for http://code.google.com/p/thread-sanitizer/issues/detail?id=3. 2 // The C++ variant is much more compact that the LLVM IR equivalent. 3 #include <stdio.h> 4 struct AAA { virtual long aaa () { return 0; } }; // NOLINT 5 struct BBB: virtual AAA { unsigned long bbb; }; // NOLINT 6 struct CCC: virtual AAA { }; 7 struct DDD: CCC, BBB { DDD(); }; // NOLINT 8 DDD::DDD() { } 9 int main() { 10 DDD d; 11 printf("OK\n"); 12 } 13 // CHECK: OK 14