ReactOS 0.4.15-dev-5865-g640e228
rethrow4.cpp
Go to the documentation of this file.
1// Copyright (c) Microsoft. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for
3// full license information.
4
5#include <stdio.h>
6int c, d;
7struct A
8{
9 int i;
10 A () { i = ++c; printf ("A() %d\n", i); }
11 A (const A&) { i = ++c; printf ("A(const A&) %d\n", i); }
12 ~A() { printf ("~A() %d\n", i); ++d; }
13};
14int
16{
17 try
18 {
19 try
20 {
21 printf ("Throwing 1...\n");
22 throw A();
23 }
24 catch (A)
25 {
26 try
27 {
28 printf ("Throwing 2...\n");
29 throw;
30 }
31 catch (A)
32 {
33 printf ("Throwing 3...\n");
34 throw A();
35 }
36 }
37 }
38 catch (A)
39 {
40 printf ("Caught.\n");
41 }
42 printf ("c == %d, d == %d\n", c, d);
43 return c != d;
44}
Definition: ehthrow.cxx:93
A()
Definition: rethrow4.cpp:10
~A()
Definition: rethrow4.cpp:12
A(const A &)
Definition: rethrow4.cpp:11
#define A(row, col)
#define printf
Definition: freeldr.h:94
const GLubyte * c
Definition: glext.h:8905
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define d
Definition: ke_i.h:81
#define c
Definition: ke_i.h:80
int c
Definition: rethrow4.cpp:6
int d
Definition: rethrow4.cpp:6
int main()
Definition: rethrow4.cpp:15