llvm-project/clang/test/Modules/misplaced-2.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
284 B
C++
Raw Normal View History

// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify
void func1() { // expected-note{{function 'func1' begins here}}
#include "dummy.h" // expected-error{{import of module 'dummy' appears within function 'func1'}}
}