// RUN: %clang_cc1 -fsyntax-only -verify -Wno-c++11-extensions %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 -Wno-c++11-extensions %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
;
;
;
void ;
void
// Ensure the delayed typo correction does the right thing when trying to
// recover using a seemingly-valid correction for which a valid expression to
// replace the TypoExpr cannot be created (but which does have a second
// correction candidate that would be a valid and usable correction).
;
void
void ;
void
;
;
void
// Test that initializer expressions are handled correctly and that the type
// being initialized is taken into account when choosing a correction.
const int DefaultArg = 9; // expected-note {{'DefaultArg' declared here}}
; // expected-error {{use of undeclared identifier 'defaultArg'; did you mean 'DefaultArg'?}}
S<1> s;
void
const int kNum = 10; // expected-note {{'kNum' declared here}}
;
// There used to be an issue with typo resolution inside overloads.
;
AssertionResult ;
AssertionResult ;
void
extern long ;
;
void
// PR 23285. This test must be at the end of the file to avoid additional,
// unwanted diagnostics.
// expected-error-re@+2 {{use of undeclared identifier 'uintmax_t'{{$}}}}
// expected-error@+1 {{expected ';' after top level declarator}}
unsigned int a = 0