⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 preserve-ppc-cr.c

📁 Mac OS X 10.4.9 for x86 Source Code gcc 实现源代码
💻 C
字号:
// APPLE LOCAL file preserve CR2 for save_world prologues// This testcase failed at -O2 due to a missing EH note describing the PowerPC Condition Register.// Thanks to Dale Johannesen.// { dg-do run }// { dg-options "-fpascal-strings" }#include <stdlib.h>#include <stdio.h>int tick = 1;int caught_x = 1;int h() { return 2; }void f(){ throw(3); }extern int h();void ff() {  bool xx = h() == 0;  if ( !xx ) {    try {      f();    } catch (float f) {      if (!xx) printf("%f\n", f);    }  }}int g(int y){  bool x = h() != 0;  if ( x) {    try {      ff();    } catch (int ex) {      //      if (x) printf("%d\n", ex);      if (x) { tick++; caught_x = ex; }    }}}main(){  g(3);  if (tick != 2 || caught_x != 3)    abort();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -