2 // RUN: %clang_cc1 -std=c++20 -fincremental-extensions -fmodules-cache-path=%t \
3 // RUN: -x c++ %s -verify
4 // expected-no-diagnostics
6 #pragma clang module build TopLevelStmt
7 module TopLevelStmt
{ module Statements
{} }
8 #pragma clang module contents
10 #pragma clang module begin TopLevelStmt.Statements
11 extern "C" int printf(const char*,...);
14 #pragma clang module end /*TopLevelStmt.Statements*/
15 #pragma clang module endbuild /*TopLevelStmt*/
17 #pragma clang module import TopLevelStmt.Statements
19 printf("Value of i is '%d'", i
);