forked from OSchip/llvm-project
Adding a regression test for PR17578. It is marked xfail until the bug is fixed.
llvm-svn: 192638
This commit is contained in:
parent
53c885c37a
commit
37868073ae
|
@ -0,0 +1,14 @@
|
|||
// RUN: %clang_cc1 -emit-llvm -x c++ < %s
|
||||
// XFAIL: *
|
||||
|
||||
// PR17578
|
||||
struct Base {
|
||||
int a;
|
||||
};
|
||||
struct Derived : virtual Base
|
||||
{};
|
||||
|
||||
void foo()
|
||||
{
|
||||
int xx = __builtin_offsetof(Derived, a);
|
||||
}
|
Loading…
Reference in New Issue