From fafe4b7572fd0884e595a04a34a4fddfed6feccb Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 30 Dec 2011 03:11:50 +0000 Subject: Revert r147271. This fixes PR11676. llvm-svn: 147362 --- clang/test/SemaCXX/constexpr-printing.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'clang/test/SemaCXX/constexpr-printing.cpp') 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; -- cgit v1.2.3