]> Creatis software - gdcm.git/commitdiff
ENH: doh I forgot to commit this file
authormalaterre <malaterre>
Fri, 7 Jan 2005 21:14:31 +0000 (21:14 +0000)
committermalaterre <malaterre>
Fri, 7 Jan 2005 21:14:31 +0000 (21:14 +0000)
gdcmTestFUNCTION.cxx [new file with mode: 0644]

diff --git a/gdcmTestFUNCTION.cxx b/gdcmTestFUNCTION.cxx
new file mode 100644 (file)
index 0000000..cf9ef0a
--- /dev/null
@@ -0,0 +1,15 @@
+// Minimal test for existence of __FUNCTION__ pseudo-macro
+#include <string.h>
+
+int TestFUNCTION()
+{
+  const char *f = __FUNCTION__;
+  int r = strcmp( "TestFUNCTION", f);
+  return r;
+}
+int main()
+{
+  return TestFUNCTION();
+}
+