OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [nullptr18.C] - Blame information for rev 705

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-std=c++0x" }
3
 
4
// Test overload of pointer versus bool when applied on a nullptr_t
5
 
6
template  struct tType_equal;
7
template  struct tType_equal { typedef void type; };
8
 
9
template 
10
inline typename tType_equal::type
11
type_equal(U) { }
12
 
13
char* j( char* );
14
bool j(  bool );
15
 
16
void test_j()
17
{
18
  type_equal(j(nullptr));
19
  decltype(nullptr) mynull = 0;
20
  type_equal(j(mynull));
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.