mirror of https://github.com/microsoft/clang.git
13 lines
520 B
C++
13 lines
520 B
C++
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -fmodules-search-all -I %S/Inputs/undefined-type-fixit %s -verify
|
|
|
|
//#include "public1.h"
|
|
#include "public2.h"
|
|
#include "public2sub.h"
|
|
|
|
use_this1 client_variable1; // expected-error{{declaration of 'use_this1' must be imported from module 'public1' before it is required}}
|
|
use_this2 client_variable2;
|
|
use_this2sub client_variable2sub;
|
|
|
|
// expected-note@Inputs/undefined-type-fixit/public1.h:4 {{previous declaration is here}}
|