aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-ambig-paren-expr.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-06-03 02:06:50 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-06-03 02:06:50 +0000
commit7c94c4bb7b875dc1a2b23f77f1ed8013cf94abdb (patch)
treee798d0a8ccc99534c2b45b4b512084b9f5bcbc16 /test/Parser/cxx-ambig-paren-expr.cpp
parent2cc390e62014a9587fe423efdd68cfa45543d804 (diff)
Use "()" instead of "(void)" when pretty-printing a parameter-less function type for C++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-ambig-paren-expr.cpp')
-rw-r--r--test/Parser/cxx-ambig-paren-expr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Parser/cxx-ambig-paren-expr.cpp b/test/Parser/cxx-ambig-paren-expr.cpp
index 6f23b35d3e..1712d849d5 100644
--- a/test/Parser/cxx-ambig-paren-expr.cpp
+++ b/test/Parser/cxx-ambig-paren-expr.cpp
@@ -5,9 +5,9 @@ void f() {
int x, *px;
// Type id.
- (T())x; // expected-error {{used type 'T (void)'}}
- (T())+x; // expected-error {{used type 'T (void)'}}
- (T())*px; // expected-error {{used type 'T (void)'}}
+ (T())x; // expected-error {{used type 'T ()'}}
+ (T())+x; // expected-error {{used type 'T ()'}}
+ (T())*px; // expected-error {{used type 'T ()'}}
// Expression.
x = (T());