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 3 4#ifndef HEADER_INCLUDED 5 6#define HEADER_INCLUDED 7typedef auto f() -> int; 8typedef int g(); 9 10#else 11 12typedef void f; // expected-error {{typedef redefinition with different types ('void' vs 'auto () -> int')}} 13 // expected-note@7 {{here}} 14typedef void g; // expected-error {{typedef redefinition with different types ('void' vs 'int ()')}} 15 // expected-note@8 {{here}} 16 17#endif 18