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

Yunzhong Gao Yunzhong_Gao at playstation.sony.com
Mon Oct 14 15:51:24 PDT 2013


Author: ygao
Date: Mon Oct 14 17:51:23 2013
New Revision: 192638

URL: http://llvm.org/viewvc/llvm-project?rev=192638&view=rev
Log:
Adding a regression test for PR17578. It is marked xfail until the bug is fixed.


Added:
    cfe/trunk/test/CodeGenCXX/offsetof.cpp

Added: cfe/trunk/test/CodeGenCXX/offsetof.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/offsetof.cpp?rev=192638&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/offsetof.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/offsetof.cpp Mon Oct 14 17:51:23 2013
@@ -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);
+}





More information about the cfe-commits mailing list