brintos

brintos / llvm-project-archived public Read only

0
0
Text · 574 B · 4d97a3d Raw
20 lines · cpp
1// RUN: rm -rf %t2// RUN: %clang_cc1 -std=c++20 -fincremental-extensions -fmodules-cache-path=%t \3// RUN:            -x c++ %s -verify4// expected-no-diagnostics5 6#pragma clang module build TopLevelStmt7module TopLevelStmt { module Statements {} }8#pragma clang module contents9 10#pragma clang module begin TopLevelStmt.Statements11extern "C" int printf(const char*,...);12int i = 0;13i++;14#pragma clang module end /*TopLevelStmt.Statements*/15#pragma clang module endbuild /*TopLevelStmt*/16 17#pragma clang module import TopLevelStmt.Statements18 19printf("Value of i is '%d'", i);20