mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 14:58:59 -04:00

For void f( a:🅱️:c ); we would cache the tokens "a:🅱️:" but then we would try to annotate them using the range "a::". Before annotating them with the (invalid) C++ scope spec, set it to the range of "a:🅱️:". llvm-svn: 106536
10 lines
387 B
C++
10 lines
387 B
C++
// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
|
|
|
|
// PR7180
|
|
int f(a::b::c); // expected-error {{use of undeclared identifier 'a'}}
|
|
|
|
class Foo::Bar { // expected-error {{use of undeclared identifier 'Foo'}} \
|
|
// expected-note {{to match this '{'}} \
|
|
// expected-error {{expected ';' after class}}
|
|
// expected-error {{expected '}'}}
|