summaryrefslogtreecommitdiff
path: root/test/Driver/clang-translation.cppm
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2018-06-14 23:09:06 +0000
committerDavid Blaikie <dblaikie@gmail.com>2018-06-14 23:09:06 +0000
commit5f8252fdc23b25455dd20c3e4cf14127c0a65031 (patch)
treefeb136f24765a9deb0d61b4b1a8f18b85a2eefa3 /test/Driver/clang-translation.cppm
parent744535e476c51e7f2d451728073966d6c6e115a1 (diff)
downloadclang-5f8252fdc23b25455dd20c3e4cf14127c0a65031.tar.gz
Modules: Fix implicit output file for .cppm to .pcm instead of stdout
This code was introduced back in r178148, a change to introduce -module-file-info - which still exists & seems like it's still tested (& this change didn't cause any of those tests to fail). It doesn't look like this change was necessary there - since it's about pcm output, whereas -module-file-info looks like it's for pcm /input/. So I'm not really sure what the original motivation was. I'm open to ideas though, if it turns out the original change was necessary/useful. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/clang-translation.cppm')
-rw-r--r--test/Driver/clang-translation.cppm2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Driver/clang-translation.cppm b/test/Driver/clang-translation.cppm
new file mode 100644
index 0000000000..01daecb7f6
--- /dev/null
+++ b/test/Driver/clang-translation.cppm
@@ -0,0 +1,2 @@
+// RUN: %clang %s --precompile -### 2>&1 | FileCheck %s
+// CHECK: "-o" "{{[^"]*}}clang-translation.pcm"