| 1 |
// RUN: rm -rf %t |
| 2 |
// RUN: mkdir %t |
| 3 |
// RUN: echo 'module X { header "x.h" }' > %t/map |
| 4 |
// RUN: echo 'extern int n;' > %t/x.h |
| 5 |
// RUN: cd %t |
| 6 |
// RUN: %clang_cc1 %s -fmodules -fmodule-map-file=map -fmodules-cache-path=. -verify -I. |
| 7 |
// expected-no-diagnostics |
| 8 |
#include "x.h" |
| 9 |
int *m = &n; |