/*-------------------------------------------------------------------+
|                Copyright (c) 1995, SAS Institute Inc.              |
|                  Unpublished - All Rights Reserved                 |
|                    S A S / C   S A M P L E                         |
|                                                                    |
|       NAME: PASCCXXC                                               |
|   LANGUAGE: C++                                                    |
|    PURPOSE: THIS EXAMPLE DEMONSTRATES A PASCAL PROGRAM CALLING     |
|             A C++ FUNCTION.                                        |
|             IT CONSISTS OF SAMPLE LIBRARY MEMBERS                  |
|             PASCCXXC, PASCCXXP, AND PASCCXX.                       |
| MVS -                                                              |
|    COMPILE: USE JCL PROVIDED IN SAMPLE.AUX(PASCCXX).               |
|       LINK: USE JCL PROVIDED IN SAMPLE.AUX(PASCCXX).               |
|    EXECUTE: USE JCL PROVIDED IN SAMPLE.AUX(PASCCXX).               |
| TSO -                                                              |
|    COMPILE: PASCAL - USE PASCAL COMPILER.                          |
|             C++ - LCXX  PASCCXXC USING INDEP OPTION.               |
|       LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(PASCCXX).   |
|    EXECUTE: CALL .LOAD(PASCCXX)                            |
| CMS -                                                              |
|    COMPILE: PASCAL - USE PASCAL COMPILER.                          |
|             C++ - LCXX PASCCXXC USING INDEP OPTION.                |
|        LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(PASCCXX).  |
|     EXECUTE: CALL PASCCXX                                          |
| MISC NOTES: THE FOLLOWING LSCL102 MESSAGES CAN BE IGNORED:         |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(AMPXRETC)   |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(AMPXHALT)   |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(AMPXSEGE)   |
+-------------------------------------------------------------------*/
#include 

extern "C" void cprog()
  {
  cout << "Hello World PASCAL calling C++" << endl;
  }