• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
7 typedef auto f() -> int; // expected-note {{here}}
8 typedef int g(); // expected-note {{here}}
9 
10 #else
11 
12 typedef void f; // expected-error {{typedef redefinition with different types ('void' vs 'auto () -> int')}}
13 typedef void g; // expected-error {{typedef redefinition with different types ('void' vs 'int ()')}}
14 
15 #endif
16