Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
89d9980bbc2e4a4ac86673e6ec16fb9f5babb63b
/
.
/
test
/
Parser
/
switch-recovery.cpp
blob: 8eb4cff4fbe1f1c7c84db03b1bfe095bec222304 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify %s
// <rdar://problem/7971948>
struct
A
{};
struct
B
{
void
foo
()
{
switch
(
a
)
{
// expected-error{{use of undeclared identifier 'a'}}
default
:
return
;
}
}
};