summaryrefslogtreecommitdiffstats
path: root/Tests/Objective-C/c-file-extension-test
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-30 14:24:55 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-09-30 14:25:19 (GMT)
commit9b03baee308d78db119554def6e34fd9db9683ac (patch)
treeb02b7066410e92956bf1a11401ac923be1f9a855 /Tests/Objective-C/c-file-extension-test
parentb24e501bc289956867b6104aac9d07afb75c906e (diff)
parentdd0f304613b1661754d9cccf5829087a8bb19a12 (diff)
downloadCMake-9b03baee308d78db119554def6e34fd9db9683ac.zip
CMake-9b03baee308d78db119554def6e34fd9db9683ac.tar.gz
CMake-9b03baee308d78db119554def6e34fd9db9683ac.tar.bz2
Merge topic 'objective-c-cxx'
dd0f304613 Objective C/C++: Add compiler standard detection b515af782b Help: Add release note for Objective-C/C++ language support 9e66397c28 Languages: Add support for Objective-C++ 80f120a85f Languages: Add support for Objective-C Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3811
Diffstat (limited to 'Tests/Objective-C/c-file-extension-test')
-rw-r--r--Tests/Objective-C/c-file-extension-test/CMakeLists.txt5
-rw-r--r--Tests/Objective-C/c-file-extension-test/main.m8
2 files changed, 13 insertions, 0 deletions
diff --git a/Tests/Objective-C/c-file-extension-test/CMakeLists.txt b/Tests/Objective-C/c-file-extension-test/CMakeLists.txt
new file mode 100644
index 0000000..e091448
--- /dev/null
+++ b/Tests/Objective-C/c-file-extension-test/CMakeLists.txt
@@ -0,0 +1,5 @@
+cmake_minimum_required(VERSION 3.15)
+
+project(c-file-extension-test C)
+
+add_executable(c-file-extension-test main.m)
diff --git a/Tests/Objective-C/c-file-extension-test/main.m b/Tests/Objective-C/c-file-extension-test/main.m
new file mode 100644
index 0000000..1c159a9
--- /dev/null
+++ b/Tests/Objective-C/c-file-extension-test/main.m
@@ -0,0 +1,8 @@
+#ifndef __OBJC__
+# error "Compiler cannot compile Objective-C"
+#endif
+
+int main()
+{
+ return 0;
+}