summaryrefslogtreecommitdiffstats
path: root/Tests/TryCompile/exit_with_error.c
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-05-24 15:27:51 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-05-24 15:27:51 (GMT)
commit7d7aba292c09170fc9f145d68644e1ff6d158eec (patch)
tree6b50a27fb13d788c4b977ea199c6311ceea04854 /Tests/TryCompile/exit_with_error.c
parent8fb8a44f5f1de4c659cc4b4cfe060e91b1e48b9c (diff)
downloadCMake-7d7aba292c09170fc9f145d68644e1ff6d158eec.zip
CMake-7d7aba292c09170fc9f145d68644e1ff6d158eec.tar.gz
CMake-7d7aba292c09170fc9f145d68644e1ff6d158eec.tar.bz2
ENH: add two simple tests for TRY_RUN()
STYLE: create a new base class cmCoreTryCompile, from which cmTryCompileCommand and cmTryRunCommand are derived, so there are no public static functions with lots of arguments anymore Alex
Diffstat (limited to 'Tests/TryCompile/exit_with_error.c')
-rw-r--r--Tests/TryCompile/exit_with_error.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/TryCompile/exit_with_error.c b/Tests/TryCompile/exit_with_error.c
new file mode 100644
index 0000000..a9a283d
--- /dev/null
+++ b/Tests/TryCompile/exit_with_error.c
@@ -0,0 +1,4 @@
+int main()
+{
+ return -1;
+}