[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / cxx-trailing-return.cpp
blobaa3879077f065d30f66a5428348a01e965a9529c
1 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -emit-pch %s -o %t-cxx11
2 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t-cxx11 -verify %s
4 #ifndef HEADER_INCLUDED
6 #define HEADER_INCLUDED
7 typedef auto f() -> int;
8 typedef int g();
10 #else
12 typedef void f; // expected-error {{typedef redefinition with different types ('void' vs 'auto () -> int')}}
13 // expected-note@7 {{here}}
14 typedef void g; // expected-error {{typedef redefinition with different types ('void' vs 'int ()')}}
15 // expected-note@8 {{here}}
17 #endif