]> granicus.if.org Git - clang/commitdiff
Added a testcase to make sure the parser allows
authorSean Callanan <scallanan@apple.com>
Wed, 10 Dec 2014 18:57:09 +0000 (18:57 +0000)
committerSean Callanan <scallanan@apple.com>
Wed, 10 Dec 2014 18:57:09 +0000 (18:57 +0000)
but ignores module imports in debugger mode,
even inside functions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223935 91177308-0d34-0410-b5e6-96231b3b80d8

test/Parser/debugger-import-module.m [new file with mode: 0644]

diff --git a/test/Parser/debugger-import-module.m b/test/Parser/debugger-import-module.m
new file mode 100644 (file)
index 0000000..b6001ae
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -fsyntax-only -fdebugger-support -verify %s
+// expected-no-diagnostics
+
+void importAModule() {
+  @import AModuleThatDoesntExist
+}