diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2015-01-07 18:47:51 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2015-01-07 18:47:51 +0000 |
| commit | c1d42ad99a3b1e07ab293dfca9d390b92faf08dc (patch) | |
| tree | 7f23d6db4766b2043cf89f04a7844dbbcab12827 | |
| parent | ece3d3c26e688c1f39787f3359a6bfa48783965a (diff) | |
| download | bcm5719-llvm-c1d42ad99a3b1e07ab293dfca9d390b92faf08dc.tar.gz bcm5719-llvm-c1d42ad99a3b1e07ab293dfca9d390b92faf08dc.zip | |
Slightly simplify the test from r225361.
Shorter and doesn't need -O2 -- but still suboptimal as it's still doing
-emit-obj. dblaikie says he'll improve this when he'll reland his change
with a fix.
llvm-svn: 225364
| -rw-r--r-- | clang/test/CodeGenCXX/crash.cpp | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/clang/test/CodeGenCXX/crash.cpp b/clang/test/CodeGenCXX/crash.cpp index a4f6ec6a42e..e1577a3abe3 100644 --- a/clang/test/CodeGenCXX/crash.cpp +++ b/clang/test/CodeGenCXX/crash.cpp @@ -1,5 +1,5 @@ // RUN: %clang_cc1 %s -std=c++11 -emit-llvm-only -// RUN: %clang_cc1 -emit-obj -o %t -gline-tables-only -O2 -std=c++11 %s +// RUN: %clang_cc1 -emit-obj -o %t -gline-tables-only -std=c++11 %s // CHECK that we don't crash. // PR11676's example is ill-formed: @@ -36,26 +36,11 @@ void f() { finalizeDefaultAtomValues<int>(); } } namespace PR22096 { -class _String_val { - union _Bxty { int i; } _Bx; +template <class> struct c { + c(); + template <class U> __attribute__((__always_inline__)) c(c<U>) {} }; -struct string : public _String_val { - string(const char *_Ptr) : _String_val() {} -}; - - -int ConvertIPv4NumberToIPv6Number(int); -struct IPEndPoint { - IPEndPoint(); - IPEndPoint(const int &address, int port); - const int &address() const {} -}; - -struct SourceAddressTokenTest { - SourceAddressTokenTest() - : ip4_dual_(ConvertIPv4NumberToIPv6Number(ip4_.address()), 1) {} - const string kPrimary = "<primary>"; - IPEndPoint ip4_; - IPEndPoint ip4_dual_; -} s; +struct { + c<double> v = c<int>(); +} o; } |

