~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/core/test_std_exception.in

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-02-05 18:46:19 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140205184619-bmxq31rw0cd3ar4u
Tags: 1.10.0~20140205~ef1e460-1
* New snapshot release
* Also install cmake / emscripten files. Thanks to Daniele Di Proietto
  for the patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <stdio.h>
2
 
#include <exception>
3
 
 
4
 
int main() {
5
 
  std::exception e;
6
 
  try {
7
 
    throw e;
8
 
  }
9
 
  catch (std::exception e) {
10
 
    printf("caught std::exception\n");
11
 
  }
12
 
  return 0;
13
 
}