commit | 61a8495e1e0485bd40f613004bf29f8a925ab37c | [log] [tgz] |
---|---|---|
author | Andrew Top <aabtop@google.com> | Tue Apr 30 15:07:33 2019 -0700 |
committer | Andrew Top <aabtop@google.com> | Thu May 02 17:06:51 2019 -0700 |
tree | 8b4860759d8854c2c58b6db4cf3ad2bf3f68aa5c | |
parent | 193dc3d54bfe1fcc7a4d95650f8e9f2c8d9e7d1e [diff] [blame] |
Import Cobalt 19.master.0.203780 Includes the following patches: https://cobalt-review.googlesource.com/c/cobalt/+/5210 by errong.leng@samsung.com https://cobalt-review.googlesource.com/c/cobalt/+/5270 by linus.wang@samsung.com
diff --git a/src/third_party/llvm-project/clang/test/CodeGenCXX/template-anonymous-union-member-initializer.cpp b/src/third_party/llvm-project/clang/test/CodeGenCXX/template-anonymous-union-member-initializer.cpp new file mode 100644 index 0000000..41ae084 --- /dev/null +++ b/src/third_party/llvm-project/clang/test/CodeGenCXX/template-anonymous-union-member-initializer.cpp
@@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -emit-llvm -o %t %s +template <typename T> +class A +{ + union { void *d; }; + +public: + A() : d(0) { } +}; + +A<int> a0;