summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/cxx-trailing-return.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/PCH/cxx-trailing-return.cpp')
-rw-r--r--clang/test/PCH/cxx-trailing-return.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/PCH/cxx-trailing-return.cpp b/clang/test/PCH/cxx-trailing-return.cpp
index ff85f6d1c5f..aa3879077f0 100644
--- a/clang/test/PCH/cxx-trailing-return.cpp
+++ b/clang/test/PCH/cxx-trailing-return.cpp
@@ -4,12 +4,14 @@
#ifndef HEADER_INCLUDED
#define HEADER_INCLUDED
-typedef auto f() -> int; // expected-note {{here}}
-typedef int g(); // expected-note {{here}}
+typedef auto f() -> int;
+typedef int g();
#else
typedef void f; // expected-error {{typedef redefinition with different types ('void' vs 'auto () -> int')}}
+ // expected-note@7 {{here}}
typedef void g; // expected-error {{typedef redefinition with different types ('void' vs 'int ()')}}
+ // expected-note@8 {{here}}
#endif
OpenPOWER on IntegriCloud