Debian Codegraph @

clang/test/Interpreter/stmt-serialization.cpp

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