1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
4 auto a
= 0; // expected-note 2{{here}}
5 auto a
= 0; // expected-error {{redefinition}}
6 int a
= 0; // expected-error {{redefinition}}
7 extern auto a
; // expected-error {{requires an initializer}}
9 extern int b
; // expected-note {{here}}
10 auto b
= 0.0; // expected-error {{different type}}
14 static int b
; // expected-note {{here}}
17 auto S::a
= 0; // expected-note 2{{here}}
18 auto S::a
; // expected-error {{redefinition}} expected-error {{requires an initializer}}
19 int S::a
= 0; // expected-error {{redefinition}}
21 auto S::b
= 0.0; // expected-error {{different type}}
25 extern auto a
; // expected-error {{requires an initializer}}