]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/tsan/virtual_inheritance_compile_bug.cc
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.
4 // RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
6 struct AAA
{ virtual long aaa () { return 0; } }; // NOLINT
7 struct BBB
: virtual AAA
{ unsigned long bbb
; }; // NOLINT
8 struct CCC
: virtual AAA
{ };
9 struct DDD
: CCC
, BBB
{ DDD(); }; // NOLINT