[Clang] ensure mangled names are valid identifiers before being suggested in ifunc...
[llvm-project.git] / clang / test / Modules / misplaced-2.cpp
blobda460993868c97194dc811d737f5873b78fa1648
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify
4 void func1() { // expected-note{{function 'func1' begins here}}
5 #include "dummy.h" // expected-error{{import of module 'dummy' appears within function 'func1'}}