summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-modules-interface.cppm
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-04-21 22:39:18 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-04-21 22:39:18 +0000
commit81328ac3a5b1bfc24010ab5ada34a5ee8f4a32ae (patch)
tree5ed49bb35921cfb90bf187d18f46a5dc93578735 /clang/test/Parser/cxx-modules-interface.cppm
parentc24d7974bcb9914540f6fcf331e53ae01e90ab05 (diff)
downloadbcm5719-llvm-81328ac3a5b1bfc24010ab5ada34a5ee8f4a32ae.tar.gz
bcm5719-llvm-81328ac3a5b1bfc24010ab5ada34a5ee8f4a32ae.zip
P0629R0: Switch to latest proposal for distinguishing module interface from implementation.
This switches from the prototype syntax in P0273R0 ('module' and 'module implementation') to the consensus syntax 'export module' and 'module'. In passing, drop the "module declaration must be first" enforcement, since EWG seems to have changed its mind on that. llvm-svn: 301056
Diffstat (limited to 'clang/test/Parser/cxx-modules-interface.cppm')
-rw-r--r--clang/test/Parser/cxx-modules-interface.cppm6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Parser/cxx-modules-interface.cppm b/clang/test/Parser/cxx-modules-interface.cppm
index f7835bd167b..628b854fd23 100644
--- a/clang/test/Parser/cxx-modules-interface.cppm
+++ b/clang/test/Parser/cxx-modules-interface.cppm
@@ -1,13 +1,13 @@
// RUN: %clang_cc1 -std=c++1z -fmodules-ts -emit-module-interface %s -o %t.pcm -verify
// RUN: %clang_cc1 -std=c++1z -fmodules-ts -emit-module-interface %s -o %t.pcm -verify -Dmodule=int -DERRORS
-module foo;
+export module foo;
#ifndef ERRORS
// expected-no-diagnostics
#else
-// expected-error@-4 {{expected module declaration at start of module interface}}
+// FIXME: diagnose 'export' declaration in non-module
+// FIXME: diagnose missing module-declaration when building module interface
-// FIXME: support 'export module X;' and 'export { int n; module X; }'
// FIXME: proclaimed-ownership-declarations?
export {
OpenPOWER on IntegriCloud