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;
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}}