diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-30 03:11:50 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-30 03:11:50 +0000 |
| commit | fafe4b7572fd0884e595a04a34a4fddfed6feccb (patch) | |
| tree | ab15d3251e781eb9d98f8708adfa29299eb051fe /clang/test/SemaCXX/constexpr-printing.cpp | |
| parent | 6c08930c5e01e3ef7265a9085a40411543fdf974 (diff) | |
| download | bcm5719-llvm-fafe4b7572fd0884e595a04a34a4fddfed6feccb.tar.gz bcm5719-llvm-fafe4b7572fd0884e595a04a34a4fddfed6feccb.zip | |
Revert r147271. This fixes PR11676.
llvm-svn: 147362
Diffstat (limited to 'clang/test/SemaCXX/constexpr-printing.cpp')
| -rw-r--r-- | clang/test/SemaCXX/constexpr-printing.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/test/SemaCXX/constexpr-printing.cpp b/clang/test/SemaCXX/constexpr-printing.cpp index cccefca9fa0..e6cf209819a 100644 --- a/clang/test/SemaCXX/constexpr-printing.cpp +++ b/clang/test/SemaCXX/constexpr-printing.cpp @@ -11,11 +11,8 @@ struct S { constexpr int extract(const S &s) { return s.n; } // expected-note {{read of uninitialized object is not allowed in a constant expression}} -constexpr S s1; // ok -void f() { - constexpr S s1; // expected-error {{constant expression}} expected-note {{in call to 'S()'}} - constexpr S s2(10); -} +constexpr S s1; // expected-error {{constant expression}} expected-note {{in call to 'S()'}} +constexpr S s2(10); typedef __attribute__((vector_size(16))) int vector_int; |

