blob: 69fda3a007dae8fe498032c2c1f8757c3a2bbc3c [file] [log] [blame]
// Regression test for https://github.com/google/sanitizers/issues/410.
// The C++ variant is much more compact that the LLVM IR equivalent.
// RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
#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;
fprintf(stderr, "OK\n");
}
// CHECK: OK