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


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to