Skip to content

Instantly share code, notes, and snippets.

@tkelman
Forked from anonymous/dmtest.cxx
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkelman/8895946 to your computer and use it in GitHub Desktop.
Save tkelman/8895946 to your computer and use it in GitHub Desktop.
class A
{
public:
A (const A &);
~A ();
};
A::A (const A &)
{
}
A & fn1 ()
{
}
A::~A ()
{
}
A a = fn1 ();
int
main ()
{
}
#!/bin/sh
g++ -g -o dmtest-g++ dmtest.cxx
./dmtest-g++ && echo "g++ compiled version runs ok"
clang++ -g -o dmtest-clang dmtest.cxx
./dmtest-clang && echo "clang++ compiled version runs ok"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment