Adding a regression test for PR17578. It is marked xfail until the bug is fixed.

llvm-svn: 192638
This commit is contained in:
Yunzhong Gao 2013-10-14 22:51:23 +00:00
parent 53c885c37a
commit 37868073ae
1 changed files with 14 additions and 0 deletions

View File

@ -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);
}