[cfe-commits] r145959 - in /cfe/trunk/test/Modules: auto-module-import.c auto-module-import.m inferred-submodules.c inferred-submodules.m
Douglas Gregor
dgregor at apple.com
Tue Dec 6 12:51:42 PST 2011
Author: dgregor
Date: Tue Dec 6 14:51:42 2011
New Revision: 145959
URL: http://llvm.org/viewvc/llvm-project?rev=145959&view=rev
Log:
Rename Objective-C-only tests to .m
Added:
cfe/trunk/test/Modules/auto-module-import.m
- copied, changed from r145957, cfe/trunk/test/Modules/auto-module-import.c
cfe/trunk/test/Modules/inferred-submodules.m
- copied unchanged from r145950, cfe/trunk/test/Modules/inferred-submodules.c
Removed:
cfe/trunk/test/Modules/auto-module-import.c
cfe/trunk/test/Modules/inferred-submodules.c
Removed: cfe/trunk/test/Modules/auto-module-import.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/auto-module-import.c?rev=145958&view=auto
==============================================================================
--- cfe/trunk/test/Modules/auto-module-import.c (original)
+++ cfe/trunk/test/Modules/auto-module-import.c (removed)
@@ -1,41 +0,0 @@
-
-// RUN: rm -rf %t
-// RUN: %clang_cc1 -x objective-c -Wauto-import -fmodule-cache-path %t -fauto-module-import -F %S/Inputs %s -verify
-
-#include <DependsOnModule/DependsOnModule.h> // expected-warning{{treating #include as an import of module 'DependsOnModule'}}
-
-#ifdef MODULE_H_MACRO
-# error MODULE_H_MACRO should have been hidden
-#endif
-
-#ifdef DEPENDS_ON_MODULE
-# error DEPENDS_ON_MODULE should have been hidden
-#endif
-
-Module *mod; // expected-error{{unknown type name 'Module'}}
-
-#import <AlsoDependsOnModule/AlsoDependsOnModule.h> // expected-warning{{treating #import as an import of module 'AlsoDependsOnModule'}}
-Module *mod2;
-
-int getDependsOther() { return depends_on_module_other; }
-
-void testSubframeworkOther() {
- double *sfo1 = sub_framework_other; // expected-error{{use of undeclared identifier 'sub_framework_other'}}
-}
-
-// Test header cross-subframework include pattern.
-#include <DependsOnModule/../Frameworks/SubFramework.framework/Headers/Other.h> // expected-warning{{treating #include as an import of module 'DependsOnModule.SubFramework.Other'}}
-
-void testSubframeworkOtherAgain() {
- double *sfo1 = sub_framework_other;
-}
-
-void testModuleSubFramework() {
- char *msf = module_subframework;
-}
-
-#include <Module/../Frameworks/SubFramework.framework/Headers/SubFramework.h> // expected-warning{{treating #include as an import of module 'Module.SubFramework'}}
-
-void testModuleSubFrameworkAgain() {
- char *msf = module_subframework;
-}
Copied: cfe/trunk/test/Modules/auto-module-import.m (from r145957, cfe/trunk/test/Modules/auto-module-import.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/auto-module-import.m?p2=cfe/trunk/test/Modules/auto-module-import.m&p1=cfe/trunk/test/Modules/auto-module-import.c&r1=145957&r2=145959&rev=145959&view=diff
==============================================================================
--- cfe/trunk/test/Modules/auto-module-import.c (original)
+++ cfe/trunk/test/Modules/auto-module-import.m Tue Dec 6 14:51:42 2011
@@ -1,6 +1,6 @@
// RUN: rm -rf %t
-// RUN: %clang_cc1 -x objective-c -Wauto-import -fmodule-cache-path %t -fauto-module-import -F %S/Inputs %s -verify
+// RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fauto-module-import -F %S/Inputs %s -verify
#include <DependsOnModule/DependsOnModule.h> // expected-warning{{treating #include as an import of module 'DependsOnModule'}}
Removed: cfe/trunk/test/Modules/inferred-submodules.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/inferred-submodules.c?rev=145958&view=auto
==============================================================================
--- cfe/trunk/test/Modules/inferred-submodules.c (original)
+++ cfe/trunk/test/Modules/inferred-submodules.c (removed)
@@ -1,15 +0,0 @@
-// RUN: rm -rf %t
-// RUN: %clang_cc1 -x objective-c -Wauto-import -fmodule-cache-path %t -fauto-module-import -F %S/Inputs %s -verify
-
-__import_module__ Module.Sub;
-
-void test_Module_Sub() {
- int *ip = Module_Sub;
-}
-
-__import_module__ Module.Buried.Treasure;
-
-void dig() {
- unsigned *up = Buried_Treasure;
-}
-
More information about the cfe-commits
mailing list